package com.zhaoziqian.config;

import com.zhaoziqian.utils.ReadNetworkConfig;

import java.io.File;

/**
 * Created with fabric-cli
 * 作者： zhaoziqian
 * 时间： 2018/5/23  下午8:35
 * 功能： 定义系统中的常量
 */
public class Config {

	public static final boolean IS_ORDERER = true;

	public static final boolean NOT_ORDERER = false;

	public static final String NETWORK_CONFIG = "network-config";

	public static final String PEER = "peer";

	public static final String ORDERER = "orderer";

	public static final String CA = "ca";

	public static final String MSPID = "mspid";

	public static final String ADMIN = "admin";

	public static final String ADMIN_PASSWORD = "adminpw";

	public static final String CHANNEL_CONFIG_DIR = "channel/channel-artifacts/channel.tx";

	public static final String CHANNEL_CONFIG_PATH = ReadNetworkConfig.NETWORK_FILE_PATH + CHANNEL_CONFIG_DIR;

	public static final String CHANNEL_NAME = "mychannel";
	// you must have the one init function in chaincode.
	public static final String FUNCTION_INIT = "init";

	public static final String GRPC = "grpc";

	public static final String GRPCS = "grpcs";

}
